<%@page contentType="text/html; charset=utf-8" language="java" errorPage="error.jsp"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
String subtitle = "评论设置";
String scripts = "/static/js/admin.js?v=0.0.1";
String styles = "/static/css/admin.css?v=0.0.1";
%>
<%@ include file="include/header.jspf"%>
<script>
$(document).ready(function() {
	var option = {};
	new GD.admin.init("option-comment");
});
</script>
<body>
<div id="wrap">
<div id="content">
   <%@include file="include/body-header.jspf"%>
   <div id="bodier">
		<jsp:include page="include/adminmenu.jspf"/>
		<div id="body-content">
			<div id="content-wrap">
				<c:if test="${param.updated=='true'}">
					<div id="setting-updated" class="radius5">设置已保存。</div>
				</c:if>
				<div class="icon32 option-icon"></div>
				<h2 class="title">评论选项</h2>
				<form id="option" action="admin/comment-option.do" method="post">
					<table class="form-table">
						<tbody>
						<tr>
							<th><label for="commentOn">开启评论审核</label></th>
							<td>
								<input id="commentOn" name="siteinfo.commentVerify" type="checkbox" ${siteinfo.commentVerify==true?"checked":""} value="true"/>
							</td>
						</tr>

						<tr>
							<th><label for="aCommentOn">开启对文章评论</label></th>
							<td>
								<input id="aCommentOn" name="siteinfo.articalCommentOn" type="checkbox" ${siteinfo.articalCommentOn==true?"checked":""} value="true"/>
							</td>
						</tr>
						<tr>
							<th><label for="aAnonymousCommentOn">开启对文章的匿名评论</label></th>
							<td>
								<input id="aAnonymousCommentOn" name="siteinfo.articalAnonymousCommentOn" type="checkbox" ${siteinfo.articalAnonymousCommentOn==true?"checked":""} value="true"/>
							</td>
						</tr>
						<tr>
							<th><label for="pcommentOn">开启对产品评论</label></th>
							<td>
								<input id="pcommentOn" name="siteinfo.productCommentOn" type="checkbox" ${siteinfo.productCommentOn==true?"checked":""} value="true"/>
							</td>
						</tr>
						<tr>
							<th><label for="pAnonymouscommentOn">开启对产品的匿名评论</label></th>
							<td>
								<input id="pAnonymouscommentOn" name="siteinfo.productAnonymousCommentOn" type="checkbox" ${siteinfo.productAnonymousCommentOn==true?"checked":""} value="true"/>
							</td>
						</tr>
						</tbody>
					</table>
					<input id="btn_sub" type="submit" class="button-blue" value="保存更改"/>
				</form>
			</div>
		</div>
		<div class="clear"></div>
  </div>
   </div>
 </div>
<%@include file="include/footer.jspf"%>